package com.avic.rong.api.mine;

import com.avic.rong.api.HttpPostService;
import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import io.reactivex.Observable;
import retrofit2.Retrofit;

public class UpDetailInfoApi extends BaseApi {
    private String token;
    private String province;
    private String city;
    private String provinceName;
    private String cityName;
    private String company  ;
    private String address;


    public UpDetailInfoApi(RxAppCompatActivity rxAppCompatActivity, HttpOnNextListener listener) {
        super(rxAppCompatActivity, listener);
    }

    public void setArgument(String token,String province,String city,String provinceName,String cityName,String company,String address){
        this.token = token;
        this.province = province;
        this.city = city;
        this.provinceName = provinceName;
        this.cityName = cityName;
        this.company = company;
        this.address = address;
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService httpPostService = retrofit.create(HttpPostService.class);
        return httpPostService.upDetailInfo(token,province,city,provinceName,cityName,company,address);
    }
}
